package clclc;

import java.lang.reflect.Field;

public class TestReflection {
    public static void main(String[] args) throws NoSuchFieldException, ClassNotFoundException {
        Student st1 = new Student();
        Class c1 = Student.class;
        Field f1 =  c1.getDeclaredField("studentName");
        Student s1 = new Student();
        Class<Student> c2 = (Class<Student>) s1.getClass();
        Class<Student> C3 = (Class<Student>) Class.forName("clclc.Student");
        System.out.println(c1);
        System.out.println(c2);
        System.out.println(C3);

    }
}
